package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2024-02-13
 * Time: 22:09
 */
public class Test {
    public static void main(String[] args) {
        //创建对象调研方法
        Person p = new Person("老王",30);
        Dog d = new Dog(2,"黑");
        p.keepPet(d,"骨头");
    }
}
